<?php
namespace Home\Model;
use lisPHP\DB\Model;

/**
 * Created by lixuan-it@360.cn
 * User: lane
 * Date: 15/8/27
 * Time: 下午4:36
 * E-mail: lixuan868686@163.com
 * WebSite: http://www.lanecn.com
 */
class IndexModel extends Model{
    public function getVersion(){
        $sql = 'SELECT VERSION() as `version`';
        $result = $this->query($sql);
        $result = $this->fetchAssoc($result);
        return $result;
    }
    public function getFind() {
        $where = array('user_name'=>'123456');
        $rs = $this->where($where)->find();
        return $rs;
    }
}